	format	MS COFF
	extrn	___bb_blitz_blitz
	extrn	___bb_drivers_drivers
	extrn	___bb_includes_cui
	extrn	___bb_minib3d_minib3d
	extrn	_bbEmptyString
	extrn	_bbEnd
	extrn	_bbGCFree
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectFree
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	extrn	_bbStringClass
	extrn	_bbStringCompare
	extrn	_bbStringConcat
	extrn	_brl_blitz_NullObjectError
	extrn	_brl_filesystem_CreateDir
	extrn	_brl_filesystem_FileType
	extrn	_brl_system_Notify
	extrn	_brl_system_RequestDir
	extrn	_getenv_
	public	___bb_includes_ceditor
	public	__bb_CEditor_Delete
	public	__bb_CEditor_Init
	public	__bb_CEditor_InitGUI
	public	__bb_CEditor_New
	public	__bb_CEditor_OnEvent
	public	__bb_CEditor_OnNewMap
	public	__bb_CEditor_SetWorkDir
	public	_bb_CEditor
	section	"code" code
___bb_includes_ceditor:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_72],0
	je	_73
	mov	eax,0
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_73:
	mov	dword [_72],1
	push	ebp
	push	_71
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	___bb_blitz_blitz
	call	___bb_drivers_drivers
	call	___bb_minib3d_minib3d
	call	___bb_includes_cui
	push	_bb_CEditor
	call	_bbObjectRegisterType
	add	esp,4
	mov	ebx,0
	jmp	_48
_48:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_CEditor_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_76
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bb_CEditor
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],edx
	push	ebp
	push	_75
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
	mov	ebx,0
	jmp	_51
_51:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_CEditor_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_54:
	mov	eax,dword [eax+8]
	dec	dword [eax+4]
	jnz	_81
	push	eax
	call	_bbGCFree
	add	esp,4
_81:
	mov	eax,0
	jmp	_79
_79:
	mov	esp,ebp
	pop	ebp
	ret
__bb_CEditor_Init:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_86
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_82
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_85
	call	_brl_blitz_NullObjectError
_85:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,4
	mov	ebx,0
	jmp	_57
_57:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_CEditor_InitGUI:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_87
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	mov	ebx,0
	jmp	_60
_60:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_CEditor_SetWorkDir:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-8],eax
	mov	byte [ebp-4],0
	push	ebp
	push	_157
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_88
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_90
	call	_brl_blitz_NullObjectError
_90:
	push	_28
	push	_27
	call	_getenv_
	add	esp,4
	push	eax
	call	_bbStringConcat
	add	esp,8
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_95
	push	eax
	call	_bbGCFree
	add	esp,4
_95:
	mov	dword [ebx+8],esi
	push	_96
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_98
	call	_brl_blitz_NullObjectError
_98:
	push	dword [ebx+8]
	call	_brl_filesystem_FileType
	add	esp,4
	cmp	eax,0
	jne	_99
	push	ebp
	push	_122
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_100
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_102
	call	_brl_blitz_NullObjectError
_102:
	push	0
	push	dword [ebx+8]
	call	_brl_filesystem_CreateDir
	add	esp,8
	mov	eax,eax
	and	eax,0xff
	mov	eax,eax
	mov	byte [ebp-4],al
	push	_104
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	movzx	eax,byte [ebp-4]
	mov	eax,eax
	cmp	eax,0
	jne	_105
	push	ebp
	push	_121
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_106
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_108
	call	_brl_blitz_NullObjectError
_108:
	push	_30
	push	_27
	call	_getenv_
	add	esp,4
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	_29
	call	_brl_system_RequestDir
	add	esp,8
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_113
	push	eax
	call	_bbGCFree
	add	esp,4
_113:
	mov	dword [ebx+8],esi
	push	_114
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_116
	call	_brl_blitz_NullObjectError
_116:
	push	_1
	push	dword [ebx+8]
	call	_bbStringCompare
	add	esp,8
	cmp	eax,0
	jne	_117
	push	ebp
	push	_120
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_118
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	_31
	call	_brl_system_Notify
	add	esp,8
	push	_119
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bbEnd
	call	dword [_bbOnDebugLeaveScope]
_117:
	call	dword [_bbOnDebugLeaveScope]
_105:
	call	dword [_bbOnDebugLeaveScope]
_99:
	push	_125
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_127
	call	_brl_blitz_NullObjectError
_127:
	push	_32
	push	dword [ebx+8]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_filesystem_FileType
	add	esp,4
	cmp	eax,0
	jne	_128
	push	ebp
	push	_132
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_129
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_131
	call	_brl_blitz_NullObjectError
_131:
	push	0
	push	_32
	push	dword [ebx+8]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_filesystem_CreateDir
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
_128:
	push	_133
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_135
	call	_brl_blitz_NullObjectError
_135:
	push	_33
	push	dword [ebx+8]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_filesystem_FileType
	add	esp,4
	cmp	eax,0
	jne	_136
	push	ebp
	push	_140
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_137
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_139
	call	_brl_blitz_NullObjectError
_139:
	push	0
	push	_33
	push	dword [ebx+8]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_filesystem_CreateDir
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
_136:
	push	_141
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_143
	call	_brl_blitz_NullObjectError
_143:
	push	_34
	push	dword [ebx+8]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_filesystem_FileType
	add	esp,4
	cmp	eax,0
	jne	_144
	push	ebp
	push	_148
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_145
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_147
	call	_brl_blitz_NullObjectError
_147:
	push	0
	push	_34
	push	dword [ebx+8]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_filesystem_CreateDir
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
_144:
	push	_149
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_151
	call	_brl_blitz_NullObjectError
_151:
	push	_35
	push	dword [ebx+8]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_filesystem_FileType
	add	esp,4
	cmp	eax,0
	jne	_152
	push	ebp
	push	_156
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_153
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_155
	call	_brl_blitz_NullObjectError
_155:
	push	0
	push	_35
	push	dword [ebx+8]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_filesystem_CreateDir
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
_152:
	mov	ebx,0
	jmp	_63
_63:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_CEditor_OnEvent:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_158
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	mov	ebx,0
	jmp	_66
_66:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_CEditor_OnNewMap:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_159
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	mov	ebx,0
	jmp	_69
_69:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_72:
	dd	0
_37:
	db	"CEditor",0
	align	4
_71:
	dd	1
	dd	_37
	dd	0
_38:
	db	"WorkingDir",0
_39:
	db	"$",0
_40:
	db	"New",0
_41:
	db	"()i",0
_42:
	db	"Delete",0
_43:
	db	"Init",0
_44:
	db	"InitGUI",0
_45:
	db	"SetWorkDir",0
_46:
	db	"OnEvent",0
_47:
	db	"OnNewMap",0
	align	4
_36:
	dd	2
	dd	_37
	dd	3
	dd	_38
	dd	_39
	dd	8
	dd	6
	dd	_40
	dd	_41
	dd	16
	dd	6
	dd	_42
	dd	_41
	dd	20
	dd	6
	dd	_43
	dd	_41
	dd	48
	dd	6
	dd	_44
	dd	_41
	dd	52
	dd	6
	dd	_45
	dd	_41
	dd	56
	dd	6
	dd	_46
	dd	_41
	dd	60
	dd	6
	dd	_47
	dd	_41
	dd	64
	dd	0
	align	4
_bb_CEditor:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_36
	dd	12
	dd	__bb_CEditor_New
	dd	__bb_CEditor_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__bb_CEditor_Init
	dd	__bb_CEditor_InitGUI
	dd	__bb_CEditor_SetWorkDir
	dd	__bb_CEditor_OnEvent
	dd	__bb_CEditor_OnNewMap
_77:
	db	"Self",0
_78:
	db	":CEditor",0
	align	4
_76:
	dd	1
	dd	_40
	dd	2
	dd	_77
	dd	_78
	dd	-4
	dd	0
	align	4
_75:
	dd	3
	dd	0
	dd	0
	align	4
_86:
	dd	1
	dd	_43
	dd	2
	dd	_77
	dd	_78
	dd	-4
	dd	0
_83:
	db	"$BMXPATH/projects/GenEd3D/Includes/CEditor.bmx",0
	align	4
_82:
	dd	_83
	dd	14
	dd	3
	align	4
_87:
	dd	1
	dd	_44
	dd	2
	dd	_77
	dd	_78
	dd	-4
	dd	0
	align	4
_157:
	dd	1
	dd	_45
	dd	2
	dd	_77
	dd	_78
	dd	-8
	dd	0
	align	4
_88:
	dd	_83
	dd	30
	dd	3
	align	4
_28:
	dd	_bbStringClass
	dd	2147483647
	dd	18
	dw	92,68,111,99,117,109,101,110,116,115,92,71,101,110,69,100
	dw	51,68
	align	4
_27:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	85,83,69,82,80,82,79,70,73,76,69
	align	4
_96:
	dd	_83
	dd	31
	dd	3
_123:
	db	"cd",0
_124:
	db	"b",0
	align	4
_122:
	dd	3
	dd	0
	dd	2
	dd	_123
	dd	_124
	dd	-4
	dd	0
	align	4
_100:
	dd	_83
	dd	32
	dd	4
	align	4
_104:
	dd	_83
	dd	33
	dd	4
	align	4
_121:
	dd	3
	dd	0
	dd	0
	align	4
_106:
	dd	_83
	dd	34
	dd	5
	align	4
_30:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	92,68,111,99,117,109,101,110,116,115
	align	4
_29:
	dd	_bbStringClass
	dd	2147483647
	dd	24
	dw	83,101,108,101,99,116,32,87,111,114,107,105,110,103,32,68
	dw	105,114,101,99,116,111,114,121
	align	4
_114:
	dd	_83
	dd	35
	dd	5
	align	4
_1:
	dd	_bbStringClass
	dd	2147483647
	dd	0
	align	4
_120:
	dd	3
	dd	0
	dd	0
	align	4
_118:
	dd	_83
	dd	36
	dd	6
	align	4
_31:
	dd	_bbStringClass
	dd	2147483647
	dd	40
	dw	65,32,119,111,114,107,105,110,103,32,100,105,114,101,99,116
	dw	111,114,121,32,105,115,32,114,101,113,117,105,114,101,100,33
	dw	10,69,120,105,116,105,110,103
	align	4
_119:
	dd	_83
	dd	37
	dd	6
	align	4
_125:
	dd	_83
	dd	41
	dd	3
	align	4
_32:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	92,77,111,100,101,108,115
	align	4
_132:
	dd	3
	dd	0
	dd	0
	align	4
_129:
	dd	_83
	dd	41
	dd	46
	align	4
_133:
	dd	_83
	dd	42
	dd	3
	align	4
_33:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	92,84,101,120,116,117,114,101,115
	align	4
_140:
	dd	3
	dd	0
	dd	0
	align	4
_137:
	dd	_83
	dd	42
	dd	48
	align	4
_141:
	dd	_83
	dd	43
	dd	3
	align	4
_34:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	92,77,97,112,115
	align	4
_148:
	dd	3
	dd	0
	dd	0
	align	4
_145:
	dd	_83
	dd	43
	dd	44
	align	4
_149:
	dd	_83
	dd	44
	dd	3
	align	4
_35:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	92,79,98,106,101,99,116,115
	align	4
_156:
	dd	3
	dd	0
	dd	0
	align	4
_153:
	dd	_83
	dd	44
	dd	47
	align	4
_158:
	dd	1
	dd	_46
	dd	2
	dd	_77
	dd	_78
	dd	-4
	dd	0
	align	4
_159:
	dd	1
	dd	_47
	dd	2
	dd	_77
	dd	_78
	dd	-4
	dd	0
